﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PagePlaceMaster.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
<script type="text/javascript" src="/Scripts/xheditor/xheditor-1.1.7-zh-cn.min.js"></script>

<script type="text/javascript">
    $(function () {
        $('#blogcontent').xheditor({
            tools: 'Blocktag,Fontface,FontSize,Bold,Italic,Underline,FontColor,Removeformat,Align,List,Outdent,Indent,Link,Uplink,Img,Flash,Media,Emot,Table,Source,Preview,Fullscreen',
            skin: 'nostyle',
            upImgUrl: "/Home/UpLoadFile?type=1",
            upImgExt: "jpg,jpeg,gif,png"
        });
    });
</script>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<!-- breadcrumbs -->
<div class="breadcrumbs">
	<div class="shell">
		<p>如有任何意见或建议，或存在任何疑问，请联系我们</p>
		<h2>Contact with us</h2>
	</div>
</div>
<!-- end breadcrumbs -->
<!-- main -->
<div id="main">
	<div class="shell">
		
		<!-- content -->
		<div id="content" class="left">
			<!-- entry -->
			<div class="entry">
				<h2 class="title">联系我们</h2>
				<!-- contact form -->
				<div class="contact-form">
					<form id="blogform" action="/Home/PostBlogArticle" enctype="multipart/form-data" class="validate-form contact-form" method="post">
						<div class="msg-thanks">
							<p><strong>Thanks!</strong></p>
						</div>
						<div class="msg-alert">
							<p>对不起，请填写必要资料</p>
						</div>
						<div class="row">
                            <input type="hidden" name="author" value="<%=ViewData["username"] %>" />
							<input type="text" id="blogauthor" disabled="disabled" value="<%=ViewData["username"] %>" class="text-field field required" style="background-color:#eee;" />
							<label>作者 <span></span></label>
							<div class="cl">&nbsp;</div>
						</div>
                        <div class="row">
							<input type="text" id="blogtitle" name="title" class="text-field field required" />
							<label>标题 （必填）</label>
							<div class="cl">&nbsp;</div>
						</div>
                         <div class="row">
                            <input type="file" id="blogimg" name="bgimage" style="height:20px;" class="text-field field required" />
							<label>主题图片 （必填,小于2M 630*218 px）</label>
							<div class="cl">&nbsp;</div>
						 </div>
                         <div class="row">
                            <input type="file" name="bgstimage" style="height:20px;" class="text-field field required" />
							<label>微缩图片 （必填,小于2M 57*55 px）</label>
							<div class="cl">&nbsp;</div>
						 </div>
						<div class="row">
							<textarea id="blogcontent" name="article" class="text-field field message required" style="height:720px;" cols="100" rows="30"></textarea>
							<div class="cl">&nbsp;</div>
						</div>
						<div class="row">
							<div class="btn-holder">
								<input id="btnpost" type="submit" class="submit-btn" value="发表" />
								<div class="cl">&nbsp;</div>
							</div>
							<div class="cl">&nbsp;</div>
						</div>
					</form>
				</div>
				<!-- end contact form -->
			</div>
			<!-- end entry -->
		</div>
		<!-- end content -->
		
		<!-- sidebar -->
		<div id="sidebar" class="right">
			
			<!-- sidebar widget -->
			<div class="entry">
				<h2 class="title">Address</h2>
				<p>Inspire ltd Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
				<ul class="contact-info">
				    <li>Email: &nbsp; <a href="#">template@impact.tm</a></li>
				    <li>Phone: &nbsp; <span>655-606-605</span></li>
				    <li>Adress: East Pixel Bld. 99, Creative City 9000, Republic of Design </li>
				</ul>
				<a href="#" class="request-btn">Request for Proposal</a>
			</div>
			<!-- end sidebar widget -->
			
			<!-- feature-in widget -->
			<div class="entry">
				<h2 class="title">Featured In</h2>
				<a href="http://cssmayo.com/" class="left css_mayo"></a>
				<a href="http://www.netmag.co.uk/" class="left net_mag"></a>
				<a href="http://www.bbc.co.uk/" class="left bbc"></a>
				<a href="http://digg.com/" class="left digg"></a>
				<div class="cl">&nbsp;</div>
			</div>
			<!-- end feature-in widget -->
			
			<!-- ads -->
			<div class="entry">
				<h2 class="title">Advertisments</h2>
				<a href="http://htmlmafia.com" class="ads"><img src="/content/images/htmlmafia.gif" alt="" /></a>
			</div>
			<!-- end ads -->
			
		</div>
		<!-- end sidebar -->
		
		
		
		<div class="cl">&nbsp;</div>
	</div>
</div>
<!-- end main -->
		<!-- footer push -->
		<div id="footer-push" class="notext">&nbsp;</div>
		<!-- end footer push -->
</asp:Content>


